<?php if (!defined('THINK_PATH')) exit();?><div id="adv_<?php echo ($pos["id"]); ?>" class="adv-wrap" style="padding: <?php echo ($pos["padding"]); ?>;margin:<?php echo ($pos["margin"]); ?>;">
    <div class="text-left " style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>;">
        <?php if(count($list) > 0): switch($pos["style"]): case "2": ?><script src="/Public/js/ext/kinmaxshow/js/kinmaxshow.min.js"></script>
                    <div style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>">
                        <div id="slide_<?php echo ($pos["id"]); ?>" style="display: none">
                            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div>
                                    <a href="<?php echo ($vo["url"]); ?>" target="_blank" title="<?php echo ($vo["title"]); ?>">
                                        <img style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>;" src="<?php echo (pic($vo["pic"])); ?>"
                                             alt="<?php echo ($vo["title"]); ?>" class="img-responsive" >
                                    </a>
                                </div><?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                    <script type="text/javascript">
                        $(function () {
                            var h_s = "<?php echo ($pos["height"]); ?>";
                            $("#slide_<?php echo ($pos["id"]); ?>").kinMaxShow({height: h_s});
                            $("#slide_<?php echo ($pos["id"]); ?>").fadeIn();
                        })
                    </script><?php break;?>
                <?php default: ?>
                <script src="/Public/js/ext/glide/js/jquery.glide.js"></script>
                <link href="/Public/js/ext/glide/css/glide.css" rel="stylesheet" type="text/css"/>
                <div class="main_visual"  style="height: <?php echo ($pos["height"]); ?>;width:<?php echo ($pos["width"]); ?>;">
                    <div class="glide">
						<ul class="slides">
							<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="slide"><a style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>;" href="<?php echo ($vo["url"]); ?>" title="<?php echo ($vo["title"]); ?>" target="_blank"><img  style="width:<?php echo ($pos["width"]); ?>;height:<?php echo ($pos["height"]); ?>;" src="<?php echo (pic($vo["pic"])); ?>" alt="<?php echo ($vo["title"]); ?>"></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
					</div>
                </div>
                <script type="text/javascript">
                    $(document).ready(function () {
                        if($('.glide').size()>0){
							var glide = $('.glide').glide({
								//autoplay:true,//是否自动播放 默认值 true如果不需要就设置此值
								animationTime:500, //动画过度效果，只有当浏览器支持CSS3的时候生效
								arrows:true, //是否显示左右导航器
								//arrowsWrapperClass: "arrowsWrapper",//滑块箭头导航器外部DIV类名
								//arrowMainClass: "slider-arrow",//滑块箭头公共类名
								//arrowRightClass:"slider-arrow--right",//滑块右箭头类名
								//arrowLeftClass:"slider-arrow--left",//滑块左箭头类名
								arrowRightText:"",//定义左右导航器文字或者符号也可以是类
								arrowLeftText:"",
								nav:true, //主导航器也就是本例中显示的小方块
								navCenter:true, //主导航器位置是否居中
								navClass:"slider-nav",//主导航器外部div类名
								navItemClass:"slider-nav__item", //本例中小方块的样式
								navCurrentItemClass:"slider-nav__item--current" //被选中后的样式
							});
						}

                    });
                </script><?php endswitch; endif; ?>

    </div>
    <?php if(check_auth('Admin/Adv/adv') == 1): ?><div class="adv-tool">
            <a target="_blank" href="<?php echo U('Admin/Adv/editPos?id=' . $pos['id']);?>"><i title="设置广告位" class="icon-cog"></i> 设置 </a>
            <a target="_blank" href="<?php echo U('Admin/Adv/adv?pos_id=' . $pos['id']);?>"><i title="管理广告" class="icon-sitemap"></i> 广告 </a>
            <a target="_blank" href="<?php echo U('Admin/Adv/editAdv?pos_id=' . $pos['id']);?>"><i title="新增广告" class="icon-plus"></i> 添加 </a>
        </div>
        <div class="adv-size">
            <?php echo ($pos["title"]); ?>  【<?php echo ($pos["name"]); ?>】: <?php echo ($pos["width"]); ?> * <?php echo ($pos["height"]); ?>
        </div><?php endif; ?>

</div>